admin prune: New builtin for cleaning up deployments and repo
authorColin Walters <walters@verbum.org>
Fri, 16 Nov 2012 22:41:46 +0000 (17:41 -0500)
committerColin Walters <walters@verbum.org>
Fri, 16 Nov 2012 22:41:46 +0000 (17:41 -0500)
commit3f4d2233611e5b4c93606d6eac17dc15b70e3b80
tree6959599ff6f3c5b8a9daa1539493fe5cac51baa5
parent05895780a34f15134296fa489cca4f027ea5e63b
admin prune: New builtin for cleaning up deployments and repo

After a while of pull-deploy cycles, you start to accumulate a lot of
them.  While the deployment read-only part is hardlinked, the -etc
space adds up.

Additionally, the repository itself just gets large.

The new command "ostree admin prune" deletes everything except the
"current" and "previous" deployments.
Makefile-ostree.am
src/ostree/ot-admin-builtin-prune.c [new file with mode: 0644]
src/ostree/ot-admin-builtins.h
src/ostree/ot-admin-functions.c
src/ostree/ot-admin-functions.h
src/ostree/ot-builtin-admin.c